/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package project.com;

import java.util.Hashtable;
import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

/**
 *
 * @author Matias
 */
public class RequestTest implements KvmSerializable {
    
    public int ID;
    public String Nombre; 
    public String Cedula; 

    public RequestTest()
    {
        
    }
            
    @Override
    public Object getProperty(int arg0) {

             switch(arg0)
            {
            case 0:
                return ID;
            case 1:
                return Nombre;
            case 2:
                return Cedula;
            }
 
    return null;
    }
    @Override
    public int getPropertyCount() {
        return 3;
    }
    
    @Override
    public void getPropertyInfo(int ind, Hashtable ht, PropertyInfo info) {
        switch(ind)
            {
            case 0:
                info.type = PropertyInfo.INTEGER_CLASS;
                info.name = "ID";
                break;
            case 1:
                info.type = PropertyInfo.STRING_CLASS;
                info.name = "Nombre";
                break;
            case 2:
                info.type = PropertyInfo.INTEGER_CLASS;
                info.name = "Cedula";
                break;
            default:break;
               }
        }
    
    @Override
    public void setProperty(int ind, Object val) {
        switch(ind)
            {
            case 0:
                ID = Integer.parseInt(val.toString());
                break;
            case 1:
                Nombre = val.toString();
                break;
            case 2:
                Cedula = val.toString();
                break;
            default:
                break;
            }
    }
}
